package com.yl.zqy.dto;

import com.yl.zqy.vo.common.TreeNode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description 部门管理DTO
 * @Author liang.yu
 * @Date 2024/3/24 20:58
 */
@Data
@Schema(description = "部门管理")
public class SysDeptDTO extends TreeNode implements Serializable {
    @Schema(description = "id")
    private String id;

    @Schema(description = "上级ID")
    private String pid;

    @Schema(description = "部门名称")
    private String name;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "创建时间")
    private LocalDateTime createDate;

    @Schema(description = "上级部门名称")
    private String parentName;
}
